<template>
<view class="page">
	<MallHeader title="关于公司"></MallHeader>
	<view class="box">
		<block v-for="(item, index) of list" :key="index">
			<view class="item">
				<view class="title">
					<text class="icon-circle"></text>
					{{ item.article_title }}
				</view>
				<view class="content" v-html="item.article_content"></view>
			</view>
		</block>
	</view>
</view>
</template>

<script> 
	import MallHeader from '@/components/mallHeader/mallHeader'
	import {aboutCompany} from '@/api/substitution.js'
	
	export default {
		components:{
			MallHeader
		},
		data(){
			return {
				list:'',
			}
		},
		onLoad() {
			this.getData()
		},
		methods: {
			
			getData(){
				uni.showLoading({
					mask: true
				})
				aboutCompany().then(res => {
					this.list = res.data.list.data
				})
			}
			
		},
	}
</script>

<style scoped lang="scss">
	.box{
		margin-top:20rpx;
		background-color: #FFFFFF;
		padding:30rpx 30rpx 70rpx;
		.item:not(:last-child){
			margin-bottom: 50rpx;
		}
		.title{
			padding-left: 30rpx;
			position: relative;
			font-size: 28rpx;
			color: #666666;
			.icon-circle{
				position: absolute;
				top:50%;left:-10rpx;
				transform: translateY(-50%);
				width: 10rpx;
				height: 10rpx;
				border-radius: 50%;
				background-color: #07C160;
			}
		}
		.content{
			margin-top: 30rpx;
			padding-left: 30rpx;
			color: #333333;
			font-size: 30rpx;
		}
	}
</style>
